<template>
  <div class="index">
    <header class="index_header">
      <van-image class="index_header_logo" :src="loginBannerSrc" />
      <h4 class="index_header_title" style="margin-top: 8px;">语言学习伙伴互动社区微信小程序</h4>
    </header>
    <main class="index_main">
        <router-view/>
    </main>
  </div>
</template>

<script setup>
import loginBannerSrc from '@/assets/login-banner.png'

</script>

<style lang="less" scoped>
.index{
  display: flex;
  flex-direction: column;
  background-color: #ffff;
  height: 100vh;
  &_header{
    margin-top: 48px;
    height: 120px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    &_title{
      color: #4A90E2;
    }
    &_logo{
      width: 180px;
      height: 180px;
    }
    &_icon{
      font-size: 44px;
    }
  }
  &_main{
    height: calc(100vh - 120px - 60px);
  }
  &_footer{
    height: 48px;
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    align-items: center;
    color: #666666;
    font-size: 14px;
  }

}

</style>
